import { ElMessage, ElNotification } from 'element-plus'

// 默认消息持续时间
const DURATION = 5 * 1000

export function message (option = {
  duration: DURATION
}) {
  ElMessage(option)
}

export function notification (option = {
  duration: DURATION
}) {
  ElNotification(option)
}
